<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/css/bootstrap.min.css"/>
    <script src="/js/jquery.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
</head>
<body>
<div style="padding-top:150px">
    <div class="card bg-light text-dark m-auto container" style="width:500px;padding:50px 50px">
        <div class="container">
            <h2>创建PSRMService</h2>


            <form action="/getGenerator">
                <div class="form-group">
                    <input type="text" class="form-control" id="IP" name="IP" placeholder="Oracle数据库IP">
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" id="PORT" name="PORT" placeholder="端口">
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" id="SERVER_NAME" name="SERVER_NAME" placeholder="服务名">
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" id="TABLE_PREFIX" name="TABLE_PREFIX" placeholder="表前缀">
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" id="PACKAGE_NAME" name="PACKAGE_NAME" placeholder="包名,如:com.aaa.bbb">
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" id="JDBC_USERNAME" name="JDBC_USERNAME" placeholder="用户名">
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" id="JDBC_PASSWORD" name="JDBC_PASSWORD"
                           placeholder="密码">
                </div>
                <button id="submit" type="submit" class="btn btn-primary form-control">建立连接</button>
            </form>
        </div>
    </div>
</div>

<script type="text/javascript">
    $(function () {
        document.onkeydown = keyDownSearch;

        function keyDownSearch(e) {
            // 兼容FF和IE和Opera
            var theEvent = e || window.event;
            var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
            if (code == 13) {
                $("#submit").click();
                return false;
            }
            return true;
        }


    })
</script>

</body>
</html>